import Http from '@/utils/axios'

export default {
  // 获取指定聊天对象的已读/未读状态
  readStatus(params) {
    return Http.get('/api/v1/chat-list/read-status', params )
  },
  groupList() {
    return Http.get('/api/v1/chat-list/grouplist') // 修改路径
  },
  privateList() {
    return Http.get('/api/v1/chat-list/list/private')
  },
  groupall() {
    return Http.get('/api/v1/chat-list/groupall')
  },
  create(param) {
    return Http.post('/api/v1/chat-list/create', param)
  },
  read(param) {
    return Http.post('/api/v1/chat-list/read', param)
  },
  delete(param) {
    return Http.post('/api/v1/chat-list/delete', param)
  },
  latestmessage(param) {
    return Http.get('/api/v1/chat-list/group/latestmessage', param)
  }
}
